<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JSON</title>
<script>
//定义JSON对象
var myJson = { 'name' : '刘兵' , 'age' : 18  };
//遍历JSON对象
for( var key in myJson ){
	    document.write( key+' : '+myJson[key]+"<br>" );  
}
//定义JSON数组，其成员是JSON对象
var wqJson = [	{'name':'张三','age':19},
					{'name':'李四','age':20},
					{'name':'王五','age':21},
				]
//遍历JSON数组
for(var i =0;i<wqJson.length;i++){
for(var j in wqJson[i]){
document.write(j+":"+wqJson[i][j]+"<br>")
}
}
const m = new Map();
const hello = function() {console.log('hello');};
m.set(hello, 'ES6 world!') 			// 键是函数
m.get(hello)  
console.log(m)
</script>
</head>
<body>
</body>
</html>